import React, { Component } from 'react'
import BMap from 'BMap';
import NavHeader from '../../components/navHeaher/index';
import './index.css'

export default class Map extends Component{
    componentDidMount() {
        const map = new window.BMap.Map('container')
        const point = new window.BMap.Point(116.404, 39.915)
        map.centerAndZoom(point, 15)
    }
    render() {
        return (
            <div className="map">
                <NavHeader>地图找房</NavHeader>
                <div id="container" className="container"></div>
            </div>
        )
    }
}